using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using MyCollections.Model;
using System.Xml;
using System.Xml.Serialization;
using System.IO;

namespace MyCollections.Utils
{
    class SaveMovie: Save
    {
        public void Save(Movie movie)
        {
            ArrayList al = new ArrayList();
            al.Add(movie);
            this.Save(al);
        }

        public void Save(ArrayList data)
        {
            IEnumerator ienum = data.GetEnumerator();
            Movie obj; XmlDocument xmldoc;
            
            while (ienum.MoveNext())
            {
                obj = (Movie)ienum.Current;
                xmldoc = Xml.Serialize(obj);
            }
        }

        public void Load()
        { }
    }
}
